{include file="admin/top.php" subject='suppliers'}
{include file="suppliers/top.php" subject='shops'}
<div id="content">
  <form method="post">
  {shops limit=1 id=$segment.id}
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">仓库名称:</td>
        <td width="240" class="content"><input name="title" type="text" id="title" value="{$smarty.post.title|default:$shops.title:1}" size="30" /> *</td>
        <td class="content">
        {if $errors.empty_title}<span class="warning">仓库名称不能为空</span>
        {elseif $errors.exist_title}<span class="warning">该仓库名称已存在</span>
        {else}为仓库输出一个名称
        {/if}
        </td>
      </tr>
      <tr class="noline">
        <td width="100" class="title">展示为:</td>
        <td width="240" class="content"><input name="show_title" type="text" id="title" value="{$smarty.post.show_title|default:$shops.show_title:1}" size="30" /> *</td>
        <td class="content">
        {if $errors.empty_show_title}<span class="warning">展示名称不能为空</span>
        {else}填写一个展示名称
        {/if}
        </td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <input type="submit" value="确定" class="btn" />
    <a href="#" class="btn" onclick="history.back(-2);">取消</a> 
    <input name="id" type="hidden" id="id" value="{$shops.id}" />
    <input name="referer" type="hidden" id="referer" value="{$smarty.post.referer|default:$smarty.server.HTTP_REFERER:1}" />
    <input name="action" type="hidden" id="action" value="modify" />
    </div>
	{/shops}
  </form>
</div>
{include file="admin/bottom.php"}
</body>
</html>
